package br.com.sovi.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public abstract class DateTimeUtils {

	private static SimpleDateFormat sdf = new SimpleDateFormat("HHmmssddMMyyyy");

	public static Date parseDate(String texto) {
		try {
			return sdf.parse(texto);
		}
		catch (ParseException e) {
			e.printStackTrace();
			return null;
		}
	}

	public static String formatDate(Date data) {
		return sdf.format(data);
	}

}
